package com.woniuxy.driverschool.mapper;

import com.woniuxy.driverschool.entity.Report;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author: xyq
 * @version: 1.0.0
 * @create: 2021/9/29 11:00
 * @description: TODO
 */

@Repository
public interface ReportMapper {
    //增添学员审查报告
    void addReport(Report report);
    //删除学员审查报告
    void removeReport(int rid);
    //修改学员审查报告
    void updateReport(@Param("reportStauts") String reportStauts, @Param("reportTime") Date reportTime,@Param("reportSubject") String reportSubject, @Param("student") String student,@Param("studyTime") String studyTime,
    @Param("rid")int rid);
    //通过id查询学员审查报告
    Report selectReportByRid(int rid);
    //分页查询学员审查报告
    List<Report> selectAllReportsByPage(@Param("report")Report report, @Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize,
                                        @Param("startTime") Date startTime, @Param("endTime") Date endTime);
    //学员审查报告总条数
    int selectCountReportsByPage(@Param("report")Report report,@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}